Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed ConnectionManager infinite connect retries #37

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

hufeng
Copy link

@hufeng hufeng commented Apr 17, 2015

add sessionTimeoutHandler

@alexguan
Copy link
Owner

The PR build failed, could you fix it first?

@hufeng
Copy link
Author

hufeng commented Apr 18, 2015

Sorry, i fix it first.

*
* @type {number}
*/
this.sessionTimeoutHandler = setTimeout(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to set the timer in connect rather than in the constructor. If the caller waits before calling connect you would fire too early.

@respinha
Copy link

Is this PR going to be merged?

artofspeed added a commit to artofspeed/node-zookeeper-client that referenced this pull request Oct 7, 2018
dreusel added a commit to dreusel/node-zookeeper-client that referenced this pull request Dec 13, 2020
fix ConnectionManager infinite connect retries alexguan#37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants